<div class="panel bar fix hasMenu" style="{{if position_top}}top:{{:position_top}};{{/if}}{{if position_left}}left:{{:position_left}};{{/if}}" tpl="process">
	<div class="title">{{if method && method=="modify"}}{{:lang.modify}}{{else}}{{:lang.New}}{{/if}}{{:lang.process}}
		<ul class="toolbar right">
			<li title="{{lang.close}}" class="button bar-close ico close">
			</li>
		</ul>
	</div>
	<form>
        <div class="grid-container">

            <div class="grid">
                <div class="col col-5-12">
                    <label>{{:lang.process_name}}
                        <input name="name"{{if form}} value="{{:form.name}}"{{/if}} />
                    </label>
                </div>
                <div class="col col-2-12">
                    <label>{{:lang.max_loop}}
                        <input name="MAX_LOOPS"{{if form}} value="{{:form.MAX_LOOPS}}"{{/if}}{{if hasDictionary && hasDictionary==true}} readonly{{/if}}/>
                    </label>
                </div>
                <div class="col col-3-12">
                    <label>{{:lang.create_date}}
                        <input readonly />
                    </label>
                </div>
                <div class="col col-2-12">
                    <label contenteditable="">{{:lang.author}}
                        <input readonly />
                    </label>
                </div>
            </div>

            <div class="grid grid-flexible align-bottom">
                <div class="col">
                    <label>{{:lang.orgin_url}}
                        <input id="origin" name="origin"{{if form}} value="{{:form.origin}}"{{/if}} />
                    </label>
                </div>
                <div class="col col-minimal">
                    <a class="button primary ico terminal" id="catch"></a>
                </div>
            </div>

            <div class="grid grid-flexible align-bottom">
                <div class="col">
                    <label>{{:lang.dictionary_id}}
                        <input id="dict_ID" name="dict_ID"{{if dictionary}} value="{{:dictionary}}"{{/if}} readonly/>
                    </label>
                </div>
                <div class="col col-minimal">
                    <a class="button primary ico dictionary" id="open-dict"></a>
                </div>
            </div>

            <div class="grid">
                <label class="h-max">{{:lang.process_describe}}
                    <textarea name="comment">{{if form}}{{:form.comment}}{{/if}}</textarea>
                </label>
            </div>
        </div>

		<div class="row">
			<ul class="toolbar right">
				{{if method && method=="modify"}}
				<li class="button success large" id="modify" title="{{:lang.modify}}">
                    {{:lang.modify}}
				</li>
				{{else}}
				<li class="button primary large" id="create" title="{{:lang.create}}">
                    {{:lang.create}}
				</li>
				{{/if}}
				<li class="button warning large bar-close" id="cancel" title="{{:lang.cancel}}">
                    {{:lang.cancel}}
				</li>
			</ul>
		</div>
	</form>
</div>